<%@ page language="java" %>
<%@ page import="java.io.PrintWriter,
                 org.apache.log4j.Logger,
                 org.apache.log4j.Level"%>
<%@ page isErrorPage="true" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>

<html>
<head>
	<title>An internal error has occurred</title>
</head>

<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

An internal error has occurred.<br>

<%
    // log the error
    Logger logger = Logger.getLogger("errorhandler.jsp");
%>
&nbsp;<br>
<%if (request.getAttribute("exception") != null) {
Exception e = (Exception)request.getAttribute("exception");
%>
Exception: <b><%= e %></b><br>
<pre>
<%e.printStackTrace(new PrintWriter(out)); %>
<%} else if (exception != null) {%>
Exception: <b><%= exception %></b><br>
<pre>
<%exception.printStackTrace(new PrintWriter(out)); %>
</pre>
<%} else {%>
Not sure where the error is.
<%}%>
</body>
</html>
